<%@ page import="org.bjou.Job" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho">
		<g:set var="entityName" value="${message(code: 'job.label', default: 'Job')}" />
		<title><g:message code="default.edit.label" args="[entityName]" /></title>
	</head>
	<body>
		<div class="container">
    <div class="row">
      <div class="twelve columns">
        <div class="box_c">
          <div class="box_c_heading cf">
            <p><g:message code="default.edit.label" args="[entityName]" /></p>
          </div>
          <div class="box_c_content">
		  <!-- start-->
		<div id="edit-job" class="content scaffold-edit" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${jobInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${jobInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form method="post" >
				<g:hiddenField name="id" value="${jobInstance?.id}" />
				<g:hiddenField name="version" value="${jobInstance?.version}" />
				<fieldset class="form">
					 <div class="fieldcontain ${hasErrors(bean: jobInstance, field: 'jobName', 'error')} ">
                                    <label for="jobName">
                                      <g:message code="job.jobName.label" default="Job Name" />

                                    </label>
                                    <g:textField name="jobName" value="${jobInstance?.jobName}"/>
                                  </div>
                                  
                                  <div class="fieldcontain ${hasErrors(bean: jobInstance, field: 'jobDscp', 'error')} ">
                                    <label for="jobDscp">
                                      <g:message code="job.jobDscp.label" default="Job Dscp" />

                                    </label>
                                    <g:textArea name="jobDscp" value="${jobInstance?.jobDscp}" rows="2" cols="10"/>
                                  </div>
				</fieldset>
				<fieldset class="buttons">
					<g:actionSubmit class="gh_button" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
					<g:actionSubmit class="gh_button icon danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				 <a href="#" onclick="javascript:history.back(-1);return false;" class="gh_button list">返回</a>
              
                                </fieldset>
			 </g:form>
              <!-- end -->
            </div>
          </div>
        </div>
      </div>
    </div>
		</div>
	</body>
</html>
